patman: make "No recipient" checking more tolerant
authorMasahiro Yamada <[email protected]>
Fri, 18 Jul 2014 05:23:20 +0000 (14:23 +0900)
committerSimon Glass <[email protected]>
Mon, 28 Jul 2014 03:57:24 +0000 (04:57 +0100)
commitee860c60d2c5283c009f7ea740c6ee706da87cb7
tree10012e2a055b57c8ca95324b40c01e64c1e3ea87
parent189a496825aefe7c8e9be80c0f2a4cf5923d4f55
patman: make "No recipient" checking more tolerant

If Series-to tag is missing, Patman exits with a message
"No recipient".

This is just annoying for those who had already added
sendemail.to configuration.

I guess many developers have

  [sendemail]
          to = [email protected]

in their .git/config because the 'To: [email protected]' field
should always be added when sending patches.

That seems more reasonable rather than adding
'Series-to: [email protected]' to every patch series.

Patman should exit only when both Series-to tag and sendemail.to
configuration are mising.

Signed-off-by: Masahiro Yamada <[email protected]>
Cc: Simon Glass <[email protected]>
Acked-by: Simon Glass <[email protected]>
tools/patman/gitutil.py